package com.itkjb.leisurely.center.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itkjb.leisurely.center.sys.model.SysRoleModel;

import java.util.List;

/**
 * <p>
 * 用户角色 Mapper 接口
 * </p>
 *
 * @author leisure_gen
 * @since 2020-06-12
 */
public interface SysRoleMapper extends BaseMapper<SysRoleModel> {
    /**
     * 根据 用户id，查询 用户的权限
     * @param userId
     * @return
     */
    List<SysRoleModel> findRoleIdAndCodeByUserId(String userId);
}
